//
//  CustomImageView.swift
//  TemplateImageEditDemo
//
//  Created by liguandong on 2024/4/11.
//
// 只显示不操作，操作交给TemplateEditContainer，并把自己引用传过去
import Foundation
import UIKit
class TemplateImageView2 : UIImageView{
    private(set) var originalWidth: CGFloat = 0
    private(set) var originalHeight: CGFloat = 0
    private(set) var originCenter : CGPoint = .zero
    private(set) var originFrame : CGRect = .zero
    override init(frame: CGRect) {
        super.init(frame: frame)
        isUserInteractionEnabled = true
        clipsToBounds = true
        contentMode = .scaleAspectFill
        originFrame = frame
        originCenter = center
        originalWidth = frame.size.width
        originalHeight = frame.size.height
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
